/* -*- c++ -*- */
/*
 * This file is part of the SD Project.
 *
 * Authors: Cleiber Marques da Silva <cleiber@lisha.ufsc.br>
 * 			Odilson Tadeu Valle <odilson@sj.ifsc.edu.br>
 * 
 * SD Project is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License as
 * published by the Free Software Foundation; version 2 of the License.
 */

#ifndef _WINDOW_H_
#define _WINDOW_H_

#include <gtkmm.h>
#include <libglademm.h>
#include <omnithread.h>

namespace sd {
	class window : public omni_thread 
	{
		private:
			void run(void *arg);
		protected:
			Glib::RefPtr<Gtk::TextBuffer> text_buffer;
			virtual void on_quit_activate();
			virtual void on_about_activate();
			virtual void on_button_clicked();
		public:
			// Widgets
			Gtk::Window *main;
			Gtk::MenuItem *quit;
			Gtk::MenuItem *about;
			Gtk::TextView *text;
			Gtk::Entry *entry;
			Gtk::Button *button;
			Gtk::Statusbar *status;
			window();
			~window(){}

			virtual void fill_buffer(std::string);
	};
}
#endif /* _WINDOW_H_ */
